"use strict";
cc._RF.push(module, '446c5DPpLdLbJ0wUMc4V1MY', 'exported-Button');
// src/exported-Button.js

"use strict";

var n = module.exports = {};
var t = module;
console.assert(true), cc.Class({
  "extends": cc.Component,
  properties: {
    image: cc.Node,
    all: cc.Node
  },
  init: function init(e) {
    this.manager = e, this.all.active = !1;
  },
  change: function change() {
    switch (this.callback = null, this.manager.state) {
      case "open":
        this.image.scaleX = -1, this.all.active = !0;
        break;

      case "close":
        this.image.scaleX = 1, this.all.active = !1;
    }
  },
  event: function event() {
    var e = this;

    switch (this.manager.state) {
      case "open":
        this.manager.hide({
          callback: function callback() {
            e.change();
          }
        });
        break;

      case "close":
        this.manager.show({
          callback: function callback() {
            e.change();
          }
        });
    }
  }
});

cc._RF.pop();